<?exit?>
<div id="seller" class="main layout store">
	<div class="content">
		<!--{if is_array($tips)}-->
		<div class="shop_notice">
			<span>$lang['windownotice']</span>
			<!--{if count($tips) > 1}-->
			<ul id="shop_notice">
				<!--{loop $tips $tip}-->
				<li>$tip</li>
				<!--{/loop}-->
			</ul>
			<p><em title="$lang['prev']" id="shop_notice_prev">$lang['prev']</em><em title="$lang['next']" id="shop_notice_next">$lang['next']</em></p>
			<!--{else}-->
			<ul id="shop_notice">
				<!--{loop $tips $tip}-->
				<li>$tip</li>
				<!--{/loop}-->
			</ul>
			<!--{/if}-->
		</div>
		<!--{/if}-->
		<div>
		<!--{if $shop['windowsimg_2'] != 'static/image/nophoto.gif' || $shop['windowsimg_3'] != 'static/image/nophoto.gif'}-->
		<div id="play_text" style="margin-top:200px; margin-left:10px; position:absolute; z-index:1;">
				<span style="background: none repeat scroll 0% 0% rgb(252, 242, 207); color: rgb(217, 75, 1); height: 16px; width: 16px; padding: 2px 5px; ">1</span>
				<span style="background: none repeat scroll 0% 0% rgb(252, 242, 207); color: rgb(217, 75, 1); height: 16px; width: 16px;  padding: 2px 5px;">2</span>
				<!--{if $shop['windowsimg_2'] != 'static/image/nophoto.gif' && $shop['windowsimg_3'] != 'static/image/nophoto.gif'}-->
				&nbsp;<span style="background: none repeat scroll 0% 0% rgb(252, 242, 207); color: rgb(217, 75, 1); height: 16px; width: 16px;  padding: 2px 5px;">3</span>
				<!--{/if}-->
		</div>
		<!--{/if}-->
		<div class="showpic" id="play_list">
			<img src="{$shop['windowsimg']}" width="710" height="220" id="wimg_1">
			<!--{if  $shop['windowsimg_2'] != 'static/image/nophoto.gif'}-->
			<img src="{$shop['windowsimg_2']}" width="710" height="220"  id="wimg_2" >
			
			<!--{/if}-->
			<!--{if  $shop['windowsimg_2'] != 'static/image/nophoto.gif'}-->
			<img src="{$shop['windowsimg_3']}" width="710" height="220"  id="wimg_3" >
			<!---{/if}-->
			<h4>$lang['brandart']</h4>
			<div>
				<p>{$shop['windowstext']}</p>
			</div>
		</div>
		</div>
		<div class="sellerbox">
		<h3 class="title">$lang['intro_description']</h3>
		<ul id="hotgoods" class="menu">
				<li id="allGoodsList" class="mouseover"><a  href="store.php?id={$shop['itemid']}&action=intro"><span>$lang['all']</span></a></li>
				<span style="float:right;"><a style="background:none;color:#000;font-weight:normal;font-size:12px;" href="store.php?id={$shop['itemid']}&action=intro">$lang['more'] &gt;&gt;</a></span>
		</ul>
		<div class="intro_info mt10"  style="padding:5px;color:#000; border:none;font-weight:normal;">
			
			<div id="intro_content">
				$shop['message']
			</div>
		</div>
		</div>
		<!--{if ($shop['enableconsume'] || $shop['enablegroupbuy']) && ($shop['nav']['groupbuy'] || $shop['nav']['consume'])}-->
			<div class="sellerbox">
				<h3>{$lang['latestactivity']}</h3>
				<div style="display: none;" id="publishnew"></div>
				<ul class="menu" id="newmovementmenu">
					<!--{if $shop['enableconsume'] && $shop['nav']['consume']}-->
						<li class="mouseover" id="coinauction"><a href="javascript:void(0);" title=""><span>{$lang['coupon']}</span></a></li>
					<!--{/if}-->
					<!--{if $shop['enablegroupbuy']  && $shop['nav']['groupbuy']}-->
						<li class="" id="coinauction"><a href="javascript:void(0);" title=""><span>{$lang['groupbuy']}</span></a></li>
					<!--{/if}-->
				</ul>
				<div id="menulist">
					<!--{if $shop['enableconsume']  && $shop['nav']['consume']}-->
						<div class="movement">
						<!--{block name="sql" parameter="sql/SELECT%20%2A%20FROM%20{$_SC['tablepre']}consumeitems%20WHERE%20shopid%20%3D%20{$shop['itemid']}%20AND%20grade%20%3D%203%20ORDER%20BY%20displayorder%20DESC%2Cdateline%20DESC/limit/0,4/cachetime/3600/cachename/consume_li/tpl/consumer_li/pagetype/storelist/usetype/consume/shopid/{$_GET['id']}"}--><!--shop new consume-->
						</div>
					<!--{/if}-->
					<!--{if $shop['enablegroupbuy']  && $shop['nav']['groupbuy']}-->
						<div class="movement">
						<!--{block name="sql" parameter="sql/SELECT%20%2A%20FROM%20{$_SC['tablepre']}groupbuyitems%20WHERE%20shopid%20%3D%20{$shop['itemid']}%20AND%20grade%20%3D%203%20ORDER%20BY%20displayorder%20DESC%2Cdateline%20DESC/limit/0,4/cachename/groupbuy_li/tpl/groupbuy_li/pagetype/storelist/usetype/groupbuy/shopid/{$_GET['id']}"}--><!--shop new groupbuy-->
					</div>
					<!--{/if}-->
				</div>
			</div>
		<!--{/if}-->
		<!--{if $shop['enablealbum']}-->
		<!--{if $shop['first_album']}-->
		<div class="sellerbox newproduct">
				<h3>{$shop['first_album_name']}</h3>
				<!-- new tab -->
				<ul id="hotgoods" class="menu">
					<li id="allGoodsList" class="mouseover"><a  href="store.php?id={$shop['itemid']}&action=album"><span>$lang['all']</span></a></li>
					<span style="float:right;"><a style="background:none;color:#000;font-weight:normal;font-size:12px;" href="store.php?id={$shop['itemid']}&action=album">$lang['more']&gt;&gt;</a></span>
				</ul>
					<!--{block name="sql" parameter="sql/SELECT%20%2A%20FROM%20{$_SC['tablepre']}photoitems%20WHERE%20albumid%20%3D%20{$shop['first_album']}%20ORDER%20BY%20itemid%20DESC/limit/0,4/cachename/album/tpl/data/pagetype/storelist/usetype/album/shopid/{$_GET['id']}"}--><!--photo-->
				<div id="albumlist">
					<ul id="albumlist"  style="display: block;">
						<!--{loop $_SBLOCK['album'] $ikey $value}-->
						<li style="text-align:center;">
						<div class="thumb" style="height:140px; vertical-align:middle; cursor">
						<a href="store.php?id={$shop['itemid']}&action=album&xid={$shop['first_album']}" target="_blank"><img style="max-height:120px;max-width:150px;width: expression(this.width > 150 ? 150 :true);height: expression(this.height > 120 ? 120 :true);" alt="" src="{$value['subjectimage']}"></a>
						</div>
						<p style="text-align:center; margin-right:10px;"><a href="store.php?id={$shop['itemid']}&action=album&xid={$value['itemid']}" target="_blank">{$value['subject']}</a></p>
						</li>
						<!--{/loop}-->
					</ul>
					<!-- new tab content -->
				</div>
		</div>
		<!--{/if}-->
		<!--{/if}-->
		<!--{if $shop['enablegood'] }-->
			<div class="sellerbox newproduct">
				<h3>{$lang['hotgood']}</h3>
				<ul id="hotgoods" class="menu">
					<li id="allGoodsList" class="mouseover"><a title="{$lang['all']}{$lang['goodlist']}" href="store.php?id={$shop['itemid']}&action=good"><span>$lang['all']</span></a></li>
					<span style="float:right;"><a style="background:none;color:#000;font-weight:normal;font-size:12px;" href="store.php?id={$shop['itemid']}&action=good">$lang['more']&gt;&gt;</a></span>
				</ul>
				<!--{block name="sql" parameter="sql/SELECT%20%2A%20FROM%20{$_SC['tablepre']}gooditems%20WHERE%20shopid%20%3D%20{$shop['itemid']}%20AND%20grade%20%3D%203%20ORDER%20BY%20displayorder%20DESC%2Cdateline%20DESC/limit/0,10/cachename/newgoods/tpl/data/pagetype/storelist/usetype/good/shopid/{$_GET['id']}"}--><!--shop new good-->
				<!--{if $_SBLOCK['newgoods']}-->
				<div id="productlist">
					<ul class="productlist" >
						<!--{loop $_SBLOCK['newgoods'] $ikey $value}-->
						<li>
						<div class="thumb">
						<a href="store.php?id={$shop['itemid']}&action=good&xid={$value['itemid']}" target="_blank"><img alt="" src="{$value['thumb']}"></a>
						</div>
						<p><a href="store.php?id={$shop['itemid']}&action=good&xid={$value['itemid']}" target="_blank">{$value['subject']}</a></p>
						<!--{if $value['minprice']}-->
						<p>{$lang['price']}{$lang['colon']}<strong class="price"><!--{if $value['minprice'] == 0 && $value['maxprice']== 0 }-->$lang['selfprice']<!--{else}-->{eval echo round($value['minprice']);} {$lang['yuan']}<!--{/if}--></strong></p>
						<!--{/if}-->
						</li>
						<!--{/loop}-->
					</ul>
					<!-- new tab content -->
				</div>
				<!--{/if}-->
			</div>
		<!--{/if}-->
		<!--{if $_G['setting']['commentmodel'] && $action == 'index' && $_SGLOBAL['commentmodel']['scorename'] &&  ($shop['uid'] != $_G['uid']  || ckfounder($_G['uid']))}-->
		<div class="sellerbox bbs">
			<!--{eval include template('templates/store/default/comment_remark.html.php', 1);}-->
		</div>
		<!--{/if}-->
		
		<!--{if $_G['setting']['commstatus']}-->
		<div class="sellerbox bbs">
			<!--{eval include template('templates/store/default/comment_com.html.php', 1);}-->
		</div>
		<!--{/if}-->
	</div>

	<div class="sidebar">
		<div class="jiontime">{$lang['jointime']}{$lang['colon']}<!--{eval echo date($lang['dateformat1'], $shop['dateline']);}--></div>
		<div class="box" id="shop_base_info">
			<!--{if $_G['uid'] && !$_G['myshopid'] && !ckfounder($_G['uid'])}-->
			<span style="color: font-size: 12px; margin-left: 190px; margin-top: 5px; cursor: pointer; position: absolute;" onclick="showWindow('report', 'shop', '{$shop[itemid]}', '{$lang[report]}');">$lang['report']</span>
			<!--{/if}-->
			<h3>{$lang['shopinfo']}</h3>
			<div class="shop_base_info">
				<h4 class="name">{$shop['subject']}</h4>
				<h5 class="name">($lang['shop_owner'] :<a href="{$_SC['bbs_url']}/home.php?mod=space&uid={$shop['uid']}&do=profile"> $shop['username']</a>)</h5>
				
				<ul style="border:none;">
					<!--{if $shop['roundingscore']}-->
					<li class="c_dgreen" id="star_area">
						<img style="vertical-align:middle;" src="static/image/{$shop['roundingscore']}_big.png" />
						<font color="red" style="font-weight:blod;font-size:14px;vertical-align:middle;">{$shop['score']}</font>
					</li>
					<!--{/if}-->
				</ul>

				<table>
					<!--{if $shop['groupinfo']['icon'] || $shop['isdiscount'] == 1 || $shop['claimedshop']}-->
					<tr>
					<th>{$lang['shop_auth']}{$lang['colon']}</th>
					<td>
					<!--{if $shop['groupinfo']['icon']}--><img title="{$shop['groupinfo']['title']}" src="static/image/common/{$shop['groupinfo']['icon']}" /><!--{/if}-->
					<!--{if $shop['isdiscount'] == 1}--><img title="{$lang[discountshop]}" src="static/image/ico_vip.gif" /> <!--{/if}-->
					<!--{if $shop['claimedshop']}--><img title="{$lang[shop_of_claimed]}" src="static/image/ico_claime.gif" /> <!--{/if}-->
					<!--{if $shop['verify1'] == 1}--><img title="{$_G['setting'][verify_1][name]}" src="static/image/{$_G['setting'][verify_1][img]}" /> <!--{/if}-->
					<!--{if $shop['verify2'] == 1}--><img title="{$_G['setting'][verify_2][name]}" src="static/image/{$_G['setting'][verify_2][img]}" /> <!--{/if}-->
					<!--{if $shop['verify3'] == 1}--><img title="{$_G['setting'][verify_3][name]}" src="static/image/{$_G['setting'][verify_3][img]}" /> <!--{/if}-->
					<!--{if $shop['verify4'] == 1}--><img title="{$_G['setting'][verify_4][name]}" src="static/image/{$_G['setting'][verify_4][img]}" /> <!--{/if}-->
					<!--{if $shop['verify5'] == 1}--><img title="{$_G['setting'][verify_5][name]}" src="static/image/{$_G['setting'][verify_5][img]}" /> <!--{/if}-->
					<!--{if $shop['verify6'] == 1}--><img title="{$_G['setting'][verify_6][name]}" src="static/image/{$_G['setting'][verify_6][img]}" /> <!--{/if}-->
					<!--{if $shop['verify7'] == 1}--><img title="{$_G['setting'][verify_7][name]}" src="static/image/{$_G['setting'][verify_7][img]}" /> <!--{/if}-->
					</td>
					</tr>
					<!--{/if}-->
					<!--{if $shop['discount']}-->
					<tr>
					<th>{$lang['disc']}{$lang['colon']}</th>
					<td><div>{eval echo cutstr($shop['discount'], 35); }</div></td>
					</tr>
					<!--{/if}-->
					<!--{if $shop['applicantqq']}-->
					<tr>
					<th>{$lang['kefu']}{$lang['colon']}</th>
					<td>
						<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$shop[applicantqq]}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$shop[applicantqq]}:41" alt="{$lang[qq_1]}" title="{$lang[qq_2]}"></a>
					</td>
					</tr>				
					<!--{/if}-->
					<!--{if $shop['tel']}-->
					<tr>
					<th>{$lang['tel']}{$lang['colon']}</th>
					<td><div>{$shop['tel']}</div></td>
					</tr>
					<!--{/if}-->
					<tr>
					<th>{$lang['addr']}{$lang['colon']}</th>
					<td><div>{$shop['address']}</div></td>
					</tr>
					<tr>
					<th>{$lang['shopinsubcat']}{$lang['colon']}</th>
					<td><div>$thecat['name']</div></td>
					</tr>
					
				</table>
			</div>
		</div>
		<!--{if $shop['score'] && $_SGLOBAL['commentmodel']['scorename']}-->
			<div class="score">
				<h3>
					{$lang['shopscore']}
				</h3>
				<ul>
					<!--{loop $_SGLOBAL['commentmodel']['scorename'] $key $scorename}-->
					<!--{if $shop['score'.$key]}-->
					<li><span>$scorename:</span>
					<dl>
						<dt style="width:{$shop['stripwidth'.$key]};">{$shop['score'.$key]} {$lang['fee']}</dt>
					</dl>
					</li>
					<!--{/if}-->
					<!--{/loop}-->
					<li style="color:#925A21;">{$lang['total']} {$shop['remarknum']} {$lang['scorenums']}</li>
				</ul>
			</div>
		<!--{/if}-->
		<!--{if $shop['enablenotice'] }-->
			<!--{block name="sql" parameter="sql/SELECT%20%2A%20FROM%20{$_SC['tablepre']}noticeitems%20WHERE%20shopid%20%3D%20{$shop['itemid']}%20AND%20grade%20%3D%203%20ORDER%20BY%20displayorder%20DESC%2Cdateline%20DESC/limit/0,5/cachename/sidenotice/tpl/data/pagetype/storelist/usetype/notice/shopid/{$_GET['id']}"}-->
			<div class="box">
				<h3><span><a href="store.php?id={$shop['itemid']}&action=notice">{$lang['view']}{$lang['all']}&gt;&gt;</a></span>{$lang['noticelist']}</h3>
				<ul>
					<!--{if $_SBLOCK['sidenotice']}-->
					<!--{loop $_SBLOCK['sidenotice'] $ikey $value}-->
					<!--{eval $value['styletitle'] = pktitlestyle($value['styletitle']);}-->
					<li><a{if $value['styletitle']}  style="{$value['styletitle']}"{/if} href="store.php?id=$shop['itemid']&amp;action=notice&amp;xid=$value['itemid']" target="_blank" title="$value[subjectall]"><!--{eval echo cutstr($value[subject],32);}--></a></li>
					<!--{/loop}-->
					<!--{else}-->
					<li style="color:#925A21;">$lang['nonotice']</li>
					<!--{/if}-->
				</ul>
			</div>
		<!--{/if}-->
		<!--{if $shop['forum']}-->
			<a style="margin-bottom:10px;display:block;" href="{$shop['forum']}" target="_blank"><img height="60" width="230" alt="" src="static/image/pk_intercourse.jpg"></a>
		<!--{/if}-->
		<!--{if $_G['setting']['enablemap']}-->
			<div class="box">
				<h3>{$lang['shopmap']}</h3>
				<div style="width: 228px; height: 200px;" id="map_canvas"></div>
				<div class="cl">
					<a class="btn_nomal fl" style="margin:5px;" href="store.php?id={$shop['itemid']}&action=map" target="_blank">{$lang['originalmap']}</a>
					<!--{if $_G['uid']}-->
					<a class="btn_nomal fr" style="margin:5px;" href="store.php?id={$shop['itemid']}&action=map&op=mark" target="_blank">{$lang['shopmap_mark']}</a>
					<!--{/if}-->
				</div>
			</div>
		<!--{/if}-->
		<!--{if !empty($brandlinkslist) && $shop['enablebrandlinks']}-->
			<div class="box">
				<h3>{$lang['brandlinks']}</h3>
				<ul>
					<!--{loop $brandlinkslist $brandlink}-->
					<li><a href="{$brandlink['url']}" target="_blank" title="{$brandlink['name']}">{$brandlink['shortname']}</a></li>
					<!--{/loop}-->
				</ul>
			</div>
		<!--{/if}-->
		<!--{if !empty($shop['viewnum'])}-->
			<div class="box" style="text-align:center;">{$lang['shopviewnum_1']} <font size="+2" color="red">{$shop['viewnum']}</font> {$lang['shopviewnum_2']}</div>
		<!--{/if}-->
	</div>
</div>
<script charset="utf-8" type="text/javascript" src="static/js/store_index.js"></script>
<!--{map showid="map_canvas" size="small" pos="{$shop['mapapimark']}" title="{$shop['subject']}"}-->
<!--{if $_G['setting']['enablemap']}-->
<script src="http://ditu.google.cn/maps/api/js?sensor=true&language=zh-CN" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
	function initialize() {

		var latlng;
		var mapapimark = "$shop[mapapimark]";
		var local = "$_SC[local]";

		if(mapapimark) {
			var mapapimarkaction = true;
			latlng = new google.maps.LatLng{$shop['mapapimark']};
		} else {
			if(!local) {
				var defaultmapaction = true;
				latlng = new google.maps.LatLng{$defaultshopmap};
			} else {
				var geoaction = true;
			}
		}
		var myOptions = {
			zoom: 14,
			center: latlng,
			navigationControl: false,
			mapTypeControl: false,
			scaleControl: false,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
		if(mapapimarkaction) {
			var marker = new google.maps.Marker({
				position: latlng,
				map: map,
				title: "{$shop['subject']}"
			});
		} else if(geoaction) {
			var geocoder = new google.maps.Geocoder();
			if(geocoder) {
				geocoder.geocode({'address': local}, function(results, status) {
					if (status == google.maps.GeocoderStatus.OK) {
						map.setCenter(results[0].geometry.location);
					} else {
						alert("{$lang['shopmap_mark_error']}");
					}
				});
			}
		}
	}
	initialize();
</script>
<!--{/if}-->
